package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class Lab {
	
	public static void main(String[] args) {
		
		double w; //가로
		double h; //세로
		double area; //넓이
		double perimeter; //둘레
		
		Scanner input =new Scanner(System.in);
		System.out.println("가로입력 :");
		w=input.nextInt();
		System.out.println("세로입력 :");
		h=input.nextInt();
		
		area=w*h;
		perimeter=2*(w+h);
		
		
		System.out.println("사각형의넓이:"+area);
		System.out.println("사각형의둘레:"+perimeter);
		
	}

}
